package cn.xzz.pethome.share.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
public class Paging {
    //定义页数
    private Integer currentPage = 1;
    //定义每页多少条
    private Integer pageSize = 10;

    //获取查询结果后的页数方法
    public Integer getPage() {
        return (currentPage-1)*pageSize;
    }
}
